class ProxyToken {
  constructor() {
    this.token = "";
  }
  setToken(token) {
    this.token = token;
  }
  getToken() {
    return this.token;
  }
}

let instance = null;

function getInstance() {
  if (!instance) {
    return (instance = new ProxyToken());
  } else {
    return instance;
  }
}

export default getInstance;
